<?php
/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 2019/11/26
 * Time: 10:36
 */

namespace app\admin\model;


use think\Model;

class Dept extends Model
{
    protected $table = 'tb_dept';
    protected $pk = 'Dno';

    public function emps()
    {
        return $this->hasMany('Emplist', 'Edeptno');
    }

    public static function getList()
    {
        $model = new static;
        return  $model->select();
    }
}